#include <stdio.h>

int main() {
    int N = 0;
    scanf("%d", &N);

    int x[200];
    int y[200];
    for (int i = 0; i < N; ++i) {
        int X, Y;
        scanf("%d %d", &X, &Y);
        x[i] = X;
        y[i] = Y;
    }

    int res = 2;
    for (int i = 0; i < N; ++i) {
        for (int j = i + 1; j < N; ++j) {
            int curRes = 2;
            const double y1 = y[i], y2 = y[j], x1 = x[i], x2 = x[j];

            if (x2 != x1) {
                const double k = (y2 - y1)/(x2-x1);
                const double b = y1 - k * x1;
                for (int n = 0; n < N; ++n) {
                    if (n == i || n == j)
                        continue;
                    const double x3 = x[n], y3 = y[n];
                    double diff = y3 - (k * x3 + b);
                    if (diff < 0.0)
                        diff = -diff;
                    if (diff < 0.000000001)
                        ++curRes;
                }
            } else {
                for (int n = 0; n < N; ++n) {
                    if (n == i || n == j)
                        continue;
                    if (x1 == x[n])
                        ++curRes;
                }
            }

            if (curRes > res)
                res = curRes;
        }
    }

    printf("%d\n", res);
    return 0;
}
